// 公用的webpack配置
const path = require('path')
const { CleanWebpackPlugin  } = require('clean-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
  entry:{
    app:'./src/index.js'
  },
  plugins:[
    new CleanWebpackPlugin(),
    new HtmlWebpackPlugin({
      title:'Production'
    })
  ],
  // module:{
  //   rules: [
  //     {
  //       test:/\.css$/,
  //       use: ['css-loader','style-loader'],
  //     }
  //   ]
  // },
  output: {
    filename: '[name].bundle.js',
    path:path.resolve(__dirname,'dist')
  }

}